home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
comm2
/
pb125_1.zip
/
CTL.LZH
/
C1
Wrap
Text File
|
1993-05-24
|
66KB
|
2,868 lines
BULLETTYPiSetActivity(Bulletins Menu)
*Disp
if (/EXPERT)=(Y) then linefeed(1)
If (/EXPERT)=(Y) Then Goto(prompt)
*Sdisp
Display(Display\blt,/:SEC/)
*Prompt
jump(Pauseprompt)
Say(&14&│$7$&0&%CACT%$0$&14&│&7& You have &15&%LEFT% &7&minutes remaining, &15&%FNAME%.)
MenuAsk%MIN1%(&3&Please enter a selection from the &11&menu&12&: &15&*)
BigIf (q:loadmain,g:goodbye,x:expert,h:help,?:sdisp,n:new)
Number(%RESP%) ;is it a number?!
IfNotTrue ( Goto (bsel))
Log(--,Bulletin %RESP% Read.)
Display (Display\Bull%RESP%)
goto (disp)
*Loadmain
LoadMem(control\main.mnu)
*Expert
loadsub(control\macros\expert.ctl)
goto (disp)
*help
Log(--,Viewing Bulletins Menu Help)
Display (Display\help\BULL,/:SEC/)
Goto (disp)
*new
LoadSub(control\macros\newbull.ctl)
enter
goto (disp)
*goodbye
LoadSub(control\macros\bye.ctl)
Goto (disp)
*bsel
LoadSub(control\macros\badsel.ctl)
Goto (disp)
*Pauseprompt
DefPause($7$&0&[Send more text?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop or (&11&C&3&)ontinue?&12&: &7&)
DefPif(s:stop,n:nonstop,g:goodbye) ;define our pause prompt...
ret
BULLETMNUoSetActivity(Bulletins Menu)
*Disp
if (/EXPERT)=(Y) then linefeed(1)
If (/EXPERT)=(Y) Then Goto(prompt)
*Sdisp
Display(Display\blt,/:SEC/)
*Prompt
Jump (pauseprompt)
Say(&14&│$7$&0&%CACT%$0$&14&│&7& You have &15&%LEFT% &7&minutes remaining, &15&%FNAME%.)
MenuAsk%MIN1%(&3&Please enter a selection from the &11&menu&12&: &15&*)
BigIf (q:loadmain,g:goodbye,x:expert,h:help,?:sdisp,n:new)
Number(%RESP%) ;is it a number?!
IfNotTrue ( Goto (bsel))
Log(--,Bulletin %RESP% Read.)
Display (Display\Bull%RESP%)
enter
goto (disp)
*Loadmain
LoadMem(control\main.mnu)
*Expert
loadsub(control\macros\expert.ctl)
goto (disp)
*help
Log(--,Viewing Bulletins Menu Help)
Display (Display\help\BULL,/:SEC/)
Goto (disp)
*new
LoadSub(control\macros\newbull.ctl)
enter
goto (disp)
*goodbye
LoadSub(control\macros\bye.ctl)
Goto (disp)
*bsel
LoadSub(control\macros\badsel.ctl)
Goto (disp)
*pauseprompt
DefPause($7$&0&[Send more text?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop or (&11&C&3&)ontinue?&12&: &7&)
DefPif(s:stop,n:nonstop,g:goodbye) ;define our pause prompt...
ret
MESSMNUA*disp
SetActivity (Message Menu)
if (/EXPERT)=(Y) then goto (prompt)
*sdisp
Display (Display\MESS,/:SEC/)
*prompt
if (/Expert)=(Y) then say()
say(&14&│$7$&0&%CACT%$0$&14&│&7& You have &15&%LEFT% &7&minutes remaining, &15&%FNAME%.&CR&&7&You are currently in the &9&%AREANAME%&7& message area.)
menuask %MIN1%(&3&Please enter a selection from the &11&menu&12&: &15&*)
BigIf (G:GOODBYE,H:HELP,?:SDISP,X:EXP,J:CHANGE,S:SEARCH,SEL:SELECT,M:READER,COPY:COPY,SC:SCAN,Q:MAINMN,R:READMN,E:ENTERMN,F:FILESMN,A:SL0)
goto (bsel)
*bsel
loadsub(control\macros\badsel.ctl)
goto (disp)
*GOODBYE
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\BYE.CTL)
Goto(Disp)
*HELP
EnufSec(10)
IfNotTrue(Goto(BSel))
Display(display\help\MESS,/:SEC/)
Log (--,Viewed Message Menu Help)
Goto (Disp)
*EXP
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\EXPERT.CTL)
Goto(Disp)
*CHANGE
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\CHG.CTL)
Goto(Disp)
*SEARCH
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\SEARCHM.CTL)
Goto(Disp)
*SELECT
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\SELECT.CTL)
Goto(Disp)
*READER
EnufSec(20)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\MREADER.CTL)
Goto(Disp)
*COPY
EnufSec(100)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\MCOPY.CTL)
Goto(Disp)
*SCAN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\SCANM.CTL)
Goto(Disp)
*MAINMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\MAIN.MNU)
*READMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\READ.CTL)
Goto(Disp)
*ENTERMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\ENTER.CTL)
Goto(Disp)
*FILESMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\FILES.MNU)
*SL0
LoadSub(CONTROL\MACROS\ABAND.CTL)
Goto(Disp)
MAINMNUK*Disp
SetActivity (Main Menu)
if(/EXPERT)=(Y) then linefeed(1)
if(/EXPERT)=(Y) then Goto (Prompt)
*sdisp
Display (display\main,/:SEC/)
*Prompt
Say(&14&│$7$&0&%CACT%$0$&14&│&7& You have &15&%LEFT% &7&minutes remaining, *)
MenuAsk %MIN1%(&15&%FNAME%.&CR&&3&Please enter a selection from the &11&menu&12&: &15&*)
BigIf (G:BYE,H:HELP,?:SDISP,X:EXP,P:PAGE,Y:STATS,N:NEWS,C:CMNT,B:BMN,Q:QMN,F:FMN,M:MMN,D:DMN,L:LIST,@:SMN,WHO:WHO,CHAT:CHAT,FIND:FND,BANK:BNK,VER:SL0)
Goto (bsel)
*bSel
LoadSub(control\macros\badsel.ctl)
Goto (disp)
*BYE
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\BYE.CTL)
Goto(Disp)
*HELP
EnufSec(10)
IfNotTrue(Goto(BSel))
Display(display\help\main,/:SEC/)
Log (--,Viewed Main Menu Help)
Goto (Disp)
*EXP
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\EXPERT.CTL)
Goto(Disp)
*PAGE
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\PAGE.CTL)
Goto(Disp)
*STATS
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\STATS.CTL)
Goto(Disp)
*NEWS
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\NEWS.CTL)
Goto(Disp)
*CMNT
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\COMMENT.CTL)
Goto(Disp)
*BMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\BULLET.MNU)
*QMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\QUES.MNU)
*FMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\FILES.MNU)
*MMN
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\MESS.MNU)
*DMN
EnufSec(20)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\DOORS.MNU)
*LIST
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\LIST.CTL)
Goto(Disp)
*SMN
EnufSec(100)
IfNotTrue(Goto(BSel))
LoadMem(CONTROL\SYSOP.MNU)
*WHO
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\MWHO.CTL)
Goto(Disp)
*CHAT
EnufSec(10)
IfNotTrue(Goto(BSel))
LoadSub(CONTROL\MACROS\MCHAT.CTL)
Goto(Disp)
*MACM
LoadMem(CONTROL\MACSIG.MNU)
*FND
LoadSub(CONTROL\MACROS\FIND.CTL)
Goto(Disp)
*BNK
LoadSub(CONTROL\MACROS\BANK.CTL)
Goto(Disp)
*SL0
LoadSub(CONTROL\MACROS\VER.CTL)
Goto(Disp)
FILESMNU. *disp
setactivity(Files Menu)
if (/expert)=(Y) then linefeed(1)
if (/EXPERT)=(Y) then goto (prompt)
*sdisp
display (display\file,/:SEC/)
*prompt
say(&14&│$7$&0&%CACT%$0$&14&│&7& You have &15&%LEFT% &7&minutes remaining, &15&%FNAME%.)
say(&9&%AREANAME%&7& Conference, &9&%FILNAME%&7& File Area.)
menuask %MIN1%(Please enter a selection from the &11&menu&12&: &15&*)
BigIf (g:goodbye,h:help,?:sdisp,x:exp,q:main,c:change,l:list,r:read,v:zview,n:new,d:down,u:up,m:move,j:join)
bigif (del:deltagged,tag:tagfiles,list:ltagged,s:search,w:wild,a:aband)
goto (badsel)
*aband
enufsec(10)
ifnottrue(goto (badsel))
loadsub(control\macros\aband.ctl)
goto (disp)
*join
enufsec(10) ;check security
IfNotTrue (goto (badsel))
loadsub(control\macros\chg.ctl)
goto (disp)
*move
enufsec(90)
ifnottrue (goto (badsel))
loadsub(control\macros\move.ctl)
goto (disp)
*down
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\DOWN.CTL)
selfarea(/:LASTDOWN/)
goto (disp)
*up
enufsec(20)
ifnottrue (goto (badsel))
loadsub(control\macros\up.ctl)
goto (disp)
*new
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\NEW.CTL)
goto (disp)
*ltagged
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\ltagged.ctl)
goto (disp)
*deltagged
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\deltag.ctl)
goto (disp)
*tagfiles
enufsec(10)
IfNotTrue (goto (badsel))
loadsub(control\macros\tfiles.ctl)
goto (disp)
*Zview
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\zview.ctl)
goto (disp)
*main
enufsec(10)
ifnottrue (goto (badsel))
jump(pauseprompt)
loadmem(control\main.MNU)
*read
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\fread.ctl)
goto (disp)
*list
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\flist.ctl)
goto (disp)
*wild
loadsub(control\macros\Wsearch.ctl)
goto (disp)
*search
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\SEARCH.CTL)
goto (disp)
*change
enufsec(10)
ifnottrue (goto(badsel))
loadsub(control\macros\change.ctl)
goto (disp)
*exp
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\expert.ctl)
goto (disp)
*help
enufsec(10)
ifnottrue (goto (badsel))
log(--,Viewing Files Menu Help)
display (display\help\file,/:SEC/)
goto (disp)
*goodbye
enufsec(10)
ifnottrue (goto (badsel))
loadsub(control\macros\bye.ctl)
goto (disp)
*badsel
loadsub(control\macros\badsel.ctl)
goto (disp)
*pauseprompt
defpause($7$&0&[Send more text?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop or (&11&C&3&)ontinue?&12&: &7&)
defPif(s:stop,n:nonstop)
ret
ENTERATTCTLσSay(&14&Calculating free storage space...*)
Zap(varr.%NODE%,%var%r)
ClearMem
FreeSpace(%CDRIVE%:)
setequal(l=%aresp%)
CmpVal(%ARESP%,%MINSPACE%)
IfTrue (Goto (notenufs))
eline(38)
*pickprot
Display (display\upPROTS1)
MenuAsk (&3&Which transfer protocol would you like to use?&12&: &15&*)
If (%RESP%)=(Q) Then Return
Len(%RESP%)
NotIf (%ARESP%)=(1) Then Goto (Pprob)
Seek(protocol\%RESP%-AU.BT)
IfTrue (Goto (Pok))
*pprob
loadsub(control\macros\badsel.ctl)
Goto (pickprot)
*Pok
addcomma(%var%l)
Say(&CR&&11&%ARESP% &15&bytes free.)
SetEqual(r=%RESP%)
cMenuAsk%cron% (&CR&&3&Please enter the &11&name &3&of the file to attach&12&:&15& *)
If (%RESP%)=(<CR>) Then Return
SetEqual(x=%RESP%)
Seek(%ATTPAT%%var%x)
IfTrue (Goto (alreadyhere))
Say(&CR&&11&We're ready to receive the file. Please start sending now.)
If (%BAUD%)=(LOCAL) Then Goto (locul)
FixFile(protocol\%var%r-au.bt,protocol\%var%r-au.bat)
Exec(protocol\%var%r-au.BAT│)
Kill(protocol\%var%r-au.bat)
Goto (success)
*locul
MenuAsk (&3&Please enter the &10&path&3& for this file&12&: &15&*)
fCopy(%RESP%\%var%x,%ATTPAT%%var%x)
Goto (success)
*success
NotIf (%ARESP%)=(0) Then Goto (aborted)
Log(--,Attach uploaded (%var%x))
Display(display\attsucc)
return
*notenufs
display(display\nospce)
Return
*aborted
SetEqual(x=)
FlushOut
Log(--,Attach upload aborted (%var%x))
Display(display\attabt)
Return
*alreadyhere
Display (display\HERENOW)
Goto (pok)
OPENCTLÄ jump (InitSetup)
Jump (AnsDetect)
Say (&CR&&3&Would you like &12&ANSI&3&/Color graphics?*)
Jump (YesNo)
SetEqual (/Graphics=ASCII)
If (%RESP%)=(Yes) then SetEqual (/Graphics=ANSI)
Display (display\WELCOME)
setequal(t=0)
*CONT
inc(t)
if (%VAR%T)=(5) then loadmem(control\no.ctl)
MenuAsk%MIN1% (&CR&&3&Please enter your first name here&12&: &15&*)
SetEqual (a=%RESP%)
Find (%var%a, )
NotIf (%ARESP%)=(0) then Goto (Check)
MenuAsk (&3& Please enter your last name here&12&: &15&*)
SetEqual (b=%RESP%)
*CHECK
jump (DoName)